﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DevExpress.Xpo;

namespace WROA.Models.Entitys
{
    public class ApplyCarData : XPObject
    {
        private Car car;
        [Association("ApplyCarDataCar")]
        public Car Car
        {
            get { return car; }
            set { car = value; }
        }

        private string acd_address;
        [DbType("nvarchar(50)")]
        public string Acd_address
        {
            get { return acd_address; }
            set { acd_address = value; }
        }

        private DateTime acd_starttime;
        [DbType("datetime")]
        public DateTime Acd_starttime
        {
            get { return acd_starttime; }
            set { acd_starttime = value; }
        }

        private DateTime acd_endtime;
        [DbType("datetime")]
        public DateTime Acd_endtime
        {
            get { return acd_endtime; }
            set { acd_endtime = value; }
        }

        private string acd_purpose;
        [DbType("nvarchar(300)")]
        public string Acd_purpose
        {
            get { return acd_purpose; }
            set { acd_purpose = value; }
        }

        [Association("PassengerApplyCarData", typeof(Passenger))]
        public XPCollection passengers
        {
            get
            {
                return GetCollection("passengers");
            }
        }

        private ApplyCar applycar;
        public ApplyCar Applycar
        {
            get { return applycar; }
            set { applycar = value; }
        }
    }
}